#include <iostream>
#include <cmath>
using namespace std;
char a[80000];
int x, y;
int main()
{
    string line;
    int k = 0;

    // 按行读取直到遇到 'E'
    while (getline(cin, line))
    {
        for (char ch : line)
        {
            a[k++] = ch;
            if (ch == 'E')
                goto END_INPUT; // 跳出双层循环
        }
    }

END_INPUT:
    if (k == 1)
    {
        cout << "0:0" << endl;
        cout << endl;
        cout << "0:0" << endl;
        return 0;
    }
    for (int i = 0; i < k; i++)
    {
        if (a[i] == 'E')
            break;
        if (a[i] == 'W')
            x++;
        else if (a[i] == 'L')
            y++;

        if ((x >= 11 || y >= 11) && abs(x - y) >= 2)
        {
            cout << x << ":" << y << endl;
            x = y = 0;
        }
    }
    cout << x << ":" << y << endl;
    x = 0;
    y = 0;
    cout << endl;
    for (int i = 0; i < k; i++)
    {
        if (a[i] == 'E')
            break;
        if (a[i] == 'W')
            x++;
        else if (a[i] == 'L')
            y++;

        if ((x >= 21 || y >= 21) && abs(x - y) >= 2)
        {
            cout << x << ":" << y << endl;
            x = y = 0;
        }
    }
    cout << x << ":" << y << endl;
    return 0;
}